package cn.studyjams.s1.contest.autohello.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import cn.studyjams.s1.contest.autohello.service.AlarmTriggerService;

/**
 * Created by liuyang
 * on 2016/11/28.
 */
public class NotificationReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {

        Intent startATS_Intent = new Intent(context, AlarmTriggerService.class);
        String eventId = intent.getStringExtra("event_id");
        startATS_Intent.putExtra("event_id", eventId);
        context.startService(startATS_Intent);
    }
}
